package com.nana.petadventure.pe
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	public class Cat extends MovieClip
	{
		public static const STATUS_RUNNING:int = 1;
		public static const STATUS_UP:int = 2;
		public static const STATUS_DOWN:int = 3;
		public static const STATUS_CRASH:int = 4;
		
		public function Cat()
		{
			super();
			this.width = 60;
			this.height = 90;
		}
		
		public function setStatus(status:int):void {
			switch (status) {
				case STATUS_CRASH:
					this.setStatusAvatar(STATUS_CRASH);
					this.rotation = 55;
			}
				
					
		}
		
		public function setStatusAvatar(avatarid:int):void {
			this.gotoAndStop(avatarid);
		}
	}
}